**// OLS
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\Z&Hcompetition.dta"
set more off
xtset IDStudy
gen double lnobs = ln(Samplesize)
ivreg2 PCC SEPCC dummies Hstatistic developed undeveloped Logit lnobs ///
citations firstpub quadratic Boone IFrecursive regulation OLS ///
reviewed_journal [pweight=investperst], cluster (IDStudy)

clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\598_Rep.dta"
set more off
xtset IDStudy
gen double lnobs = ln(Samplesize)
ivreg2 PCC SEPCC Hstatistic  Logit lnobs citations reviewed_journal firstpub ///
global developed dummies RE quadratic DtoD Lerner sampleyear ///
ownership someAveraged [pweight=investperst], cluster (IDStudy)
